const axios = require('axios')
const baseURL = 'http://localhost:3000'

// 获取用户列表
export async function getGoodsCategoryList (params) {
  console.log('分类管理获取商品分类列表数据')
  console.log(params)
  return await axios({
    method: 'post',
    url: baseURL + '/api/getGoodsCategoryList',
    data: {
      ...params
    }
  })
}

// 删除商品
export async function delCategoryByid (params) {
  console.log('获取商品列表数据')
  console.log(params)
  return await axios({
    method: 'post',
    url: baseURL + '/api/delCategoryByid',
    data: {
      params
    }
  })
}
